{% extends "base.html" %}
{% block content %}v

<div  ></div>
    <form action="" method="post" >
    {% csrf_token %}
        <div class="panel-heading">
                    <h3 class="panel-title">添加实验室表</h3>
        </div>
        <p>
            <label for="{{ form_obj.name.id_for_label }}"> {{ form_obj.name.label }} :</label>
            {{ form_obj.name }}<span style="color: red">{{ form_obj.name.errors.0 }}</span>
        </p>
        <p>
            <lable for="{{ form_obj.floor.id_for_label }}">{{ form_obj.floor.label }}:</lable>
            {{ form_obj.floor }}<span style="color: red">{{ form_obj.floor.errors.0 }}</span>

        </p>
        <p>
            <lable for="{{ form_obj.room_number.id_for_label }}">{{ form_obj.room_number.label }}:</lable>
            {{ form_obj.room_number }}<span style="color: red">{{ form_obj.room_number.errors.0 }}</span>

        </p>
        <p>
            <lable for="{{ form_obj.principal.id_for_label }}">{{ form_obj.principal.label }}:</lable>
            {{ form_obj.principal }}<span style="color: red">{{ form_obj.principal.errors.0 }}</span>

        </p>
{#        <p>#}
{#            <lable for="{{ form_obj.User_id.id_for_label }}">{{ form_obj.User_id.label }}:</lable>#}
{#            {{ form_obj.User_id }}<span style="color: red">{{ form_obj.User_id.errors.0 }}</span>#}
{##}
{#        </p>#}
        <div>
            <button class="btn btn-primary btn-lg">保存</button>
        </div>

    </form>

{% endblock %}